self.addEventListener("message", (e: MessageEvent) => {
  const columns = e.data;
  const data = new Array(100000).fill(0).map((item, index) => {
    const i: any = { id: index };
    for (const col of columns) {
      i[col.dataKey] = (
        Math.random() *
        1000000000 *
        (Math.floor(Math.random() * 2) * 2 - 1)
      ).toFixed(2);
    }
    return i;
  });

  self.postMessage(data);
});
